Page({
    data: {
        cart:{},
        markers: [{
            id: 1,
            latitude: '',
            longitude: ''
          }],
    },

    onShow(){
        let cart = wx.getStorageSync("cart");
        this.setData({
            cart: cart,
            markers:[{
                id:1,
                latitude:cart.lat,
                longitude:cart.lng
            }]
        });
    }
})
